GetCommand
Mac OSThe
GetCommand
method returns the command ID for the specified menu/menu item designation.
ODCommandID GetCommand (in ODMenuID menu, in ODMenuItemID menuItem);
menu
- A platform-specific identifier for a menu. On the Mac OS platform, the menu ID is defined as a signed 16-bit value.
menuItem
- A platform-specific identifier for a menu item. On the Mac OS platform, the menu item ID is defined as a signed 16-bit value.
- return value
- The command ID for the specified menu/menu item designation, or
kODNoCommand
if the command ID does not exist. On the Mac OS platform, the command ID is defined as a signed 32-bit value.SEE ALSO
TheODCommandID
type (page 895).
Listing 2-29 on page 84 in OpenDoc Cookbook.
"Menu Events" on page 193 in OpenDoc Programmer's Guide.
"Registering and Retrieving Command IDs" on page 242 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help